package com.yunqing.restkeeper.enterprise.web.vo.store;

import com.yunqing.restkeeper.store.api.entity.CreditCompanyUser;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * 挂账管理VO
 */
@Data
public class CreditVO {

    @Schema(name = "creditType", description = "挂账类型 1 企业 2 个人")
    private int creditType;

    @Schema(name = "companyName", description = "挂账公司名")
    private String companyName;

    @Schema(name = "users", description = "挂账公司用户列表")
    private List<CreditCompanyUser> users;

    //挂账类型个人时候使用
    @Schema(name = "userName", description = "个人类型 挂账人")
    private String userName;

    @Schema(name = "phone", description = "个人类型 联系电话")
    private String phone;

    //回显使用
    @Schema(name = "creditAmount", description = "挂账用户列表")
    private Integer creditAmount; //挂账金额

    @Schema(name = "status", description = "挂账用户列表")
    private Integer status = 1; // 状态 0停用， 1启用
}